package com.daxue.code;

import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.Element;
import org.dom4j.io.SAXReader;
import org.junit.jupiter.api.Test;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.List;

/**
 * @author daxue0929
 * @date 2022/11/23
 */

public class XmlTest {

    @Test
    public  void main() throws FileNotFoundException, DocumentException {



        SAXReader saxReader = new SAXReader();
        Document document =
            saxReader.read(new FileInputStream("/Users/daxue0929/test.xml"));
        Element rootElement = document.getRootElement();

        List<Element> elementList = rootElement.elements();

        System.out.println("123");





    }
}
